<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class WarehouseRma extends Model
{
    use HasFactory;

    protected $fillable = [
        'company_id','project_id','admin_id','warehouse_id','type','name','encoding','number','brand','specification','unit','quantity','price','remarks','donor','unit_price','brief','status','rma_date'
    ];
    const POSTONLY = [
        'company_id','project_id','admin_id','warehouse_id','type','name','encoding','number','brand','specification','unit','quantity','price','remarks','donor','unit_price','brief','status','rma_date'
    ];

    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }

}
